﻿using System;
using System.Data;
using Wicresoft.Common;
using System.Security.Cryptography;
using System.Text;

/// <summary>
/// Summary description for Helper
/// </summary>
public class Helper
{
    public Helper()
    {
       
    }
    public static string MD5Hash(string str)
    {
        MD5CryptoServiceProvider MD5CryptoSP = new MD5CryptoServiceProvider();
        return Convert.ToBase64String(MD5CryptoSP.ComputeHash(Encoding.Unicode.GetBytes(str)));
    }
    public static DataTable GetAttendenceType()
    {
        return DataAccess.Select(typeof(AttendenceType), string.Empty, "ID");
    
    }
}
